package com.xinzhitong.www.pojo;

import com.xinzhitong.www.enumeration.GoodType;
import lombok.Data;

/**
 * 订单实体类
 *
 * @author 徐鑫
 */
@Data
public class Trade {

    /**
     * 用户名
     */
    private String username;

    /**
     * 货物id
     */
    private Integer goodId;

    /**
     * 订单号
     */
    private String outTradeNo;

    /**
     * 总金额
     */
    private Double totalAmount;

    /**
     * 商品类型
     */
    private GoodType goodType;

    public Trade(String username, Integer goodId, GoodType goodType, String outTradeNo, Double totalAmount) {
        this.username = username;
        this.goodId = goodId;
        this.outTradeNo = outTradeNo;
        this.totalAmount = totalAmount;
        this.goodType = goodType;
    }

    public Trade() {

    }

}
